﻿using Ninject;
using Peninsula.DataAccess.POCO;
using Peninsula.Web.Infrastructure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Peninsula.Web.Areas.Backstage.Controllers
{
    public class RepairOrderController : AdminBaseController
    {
        [Inject]
        public IServices.IRepairOrderService RepairOrderService { get; set; }
        // GET: Backstage/RepairOrder
        public ActionResult Index()
        {
            return View();
        }

        /// <summary>
        /// 订单详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult Details(string id)
        {
            SetBreadcrumb(currentName: "订单详情");
            SetPageTitle("订单详情");
            RepairOrder model = RepairOrderService.GetById(id);
            return View(model);
        }
    }
}